package A1_2;

public class Course {
    private String name;
    private Building building;

    public Course() {
    }

    public Course(String name, Building building) {
        this.name = name;
        this.building = building;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Building getBuilding() {
        return building;
    }

    public void setBuilding(Building building) {
        this.building = building;
    }

    @Override
    public String toString() {
        return "Course{" +
                "name='" + name + '\'' +
                ", building=" + building +
                '}';
    }
}
